
export default function post(value) {
  return fetch(value.url, {
    method: 'POST',
    // headers: new Headers({ 
      // "Access-Control-Allow-Origin" : "*",
      // "Access-Control-Allow-Credentials" : true
    // }),
    body: JSON.stringify(value.data)
  })
  .then(res => res.json())
  .catch(e => console.log('Error', e))
}


